/*
  * gere une seule commande (peu donc gerer plusieurs commandes FTP)
  */
function Commande() {
	this.all = new Array();
	this.enCours = 0;
	this.suivante = 0;

	this.init = function(arg) {
		var action = arg.substring(0, 4);
		if(action == "TPLS") { //list
			this.all.push("PASV");
			this.all.push("LIST " + sCheminDist + this.tmpFile.fileName);
		} else if(action == "TPDL") { //dl
			this.all.push("TYPE I");
			this.all.push("PASV");
			this.all.push("RETR " + sCheminDist + this.tmpFile.fileName);
		} else if(action == "TPUP") { //up
			this.all.push("TYPE I");
			this.all.push("PASV");
			this.all.push("STOR " + sCheminDist + this.tmpFile.fileName);
		} else if(action == "TPDD") { //dl dir
			this.all.push("PASV");
			this.all.push("LIST " + escape(sCheminDist));
		} else if(action == "TPID") { //identification
			this.all.push("USER " + ...);
			this.all.push("PASS " + escape(sCheminDist));
		}
	}
	
	this.getNext = function() {
	}
	
	this.retry = function() {
	}
}
